IF EXISTS (SELECT * FROM sysobjects WHERE type = 'U' AND name = 'BookAuthor')
	BEGIN
		DROP  Table BookAuthor
	END
GO

CREATE TABLE BookAuthor
(
   Id int IDENTITY PRIMARY KEY,
   BookId int NOT NULL REFERENCES Book(Id),
   AuthorId int NOT NULL REFERENCES Author(Id)
)
GO
